package com.corpgovernment.organization.model;

import com.corpgovernment.api.organization.model.org.front.FrequentCardListBean;
import com.ctrip.corp.obt.generic.security.annotation.SecurityField;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @ClassName: FfpAddRequest
 * @description: TODO
 * @author: zdwang
 * @date: Created in 9:31 2019/7/12
 * @Version: 1.0
 **/
@Data
public class FfpAddRequest {
//    @NotBlank(message = "中文名不能为空")
    private String fullName;

    private String firstName;

    private String lastName;

    private List<CardInfo> cardIdList;

    private String validDate;

    private String birthday;

    private Integer sex;

    private String nationality;

    private String phoneNum;

    private String countryCode;

    private String email;//邮箱

    private String device;

    private List<FrequentCardListBean> frequentCardsList;

    /**
     * 姓
     */
    private String surname;
    /**
     * 名字
     */
    private String givenname;
    /**
     * 完整英文名字
     */
    private String fullEnName;

    @Data
    public static class CardInfo {
        @NotNull(message = "卡类型不能为空")
        private Integer cardType;
        @NotNull(message = "卡号不能为空")
        @SecurityField(securityType = "des_id_card")
        private String cardId;
        private String validDate;
        /**
         * 证件签发国
         */
        private String placeOfIssue;
    }
}